import pandas as pd
import plotly.express as px

import config
import load_fred
import pca_index

import pandas_datareader

DATA_DIR = config.DATA_DIR

import warnings
warnings.filterwarnings("ignore")

S&P 500#

df = pandas_datareader.get_data_fred('SP500', start='1970-01-01')

fig = px.line(df)
fig.show()

PCA Index Dashboard Examples#

This script was last run at 2024-03-21 10:11:37.045473+00:00 (UTC)
In US/Central Time, this is 2024-03-21 05:11:37.045473-05:00
../../_images/397ec44be26215df22ec163c82c963d95a62385698f90a269083611e021cbdbf.png
../../_images/42686505a4512282164096f30ecaa6093b112716928f67d3d1fa44548aa9c69d.png